package com.server.rule.factory;

import org.jeasy.rules.api.Facts;

/**
 * Description: This is a sample class.
 * @Author Simon
 */
public class NettyFactFactory {
    private volatile static Facts facts;
    private NettyFactFactory(){

    }

    public static Facts getInstance(){
        if(facts==null){
            synchronized (NettyFactFactory.class){
                if (facts==null){
                    facts=new Facts();
                }
            }
        }
        return facts;
    }
}
